<?php

defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.view');

class work_pointViewDashboard extends JView {
	function display($tpl = null)
	{	 
		
        //$lay_out = JRequest::getVar('layout');
        //if($lay_out == ''){
            if(isset($_POST['datepicker']))
            {
                $date = $_POST['datepicker'];
            }
            else
            {
                $date = null;
            }
                $model = $this->getModel();
                $data = $model->report_date($date);
                $this->assignRef('data',$data);
                $this->assignRef('date',$date);
                //}
                //else if($lay_out == 'thong_ke')
                //{
                    
                //}
                parent::display($tpl);
	}
	
}
